using UnityEngine;

public class FakeLeadPositionRequest : MonoBehaviour
{
	public UIButton button;

	public UISprite sprite;

	public PlayerPositionRequestTest leadPopulation;

	public void SendLeadPositionRequest()
	{
		button.enabled = false;
		UITools.ChangeSprite(sprite, "button-plastic-red");
		leadPopulation.GetPlayerPositionList(delegate
		{
			button.enabled = true;
			UITools.ChangeSprite(sprite, "button-plastic-green");
		});
	}
}
